package com.itheima.homework;

public class test {
    public static void main(String[] args) {
        Java j=new Java();
        j.work();
        UI u=new UI();
        u.work();
        u.paint();
    }
}
class Java extends Staff{

    @Override
    public void work() {
        System.out.println("java讲师讲课");
    }
}
class UI extends Staff implements  Painting{

    @Override
    public void paint() {
        System.out.println("UI讲师会画画");
    }

    @Override
    public void work() {
        System.out.println("UI讲师讲UI");
    }
}